package com.niit.service.impl;

//import com.niit.dao.StudentMapper;
import com.niit.dao.UserMapper;
import com.niit.pojo.User;
import com.niit.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User Login(User user) {return userMapper.Login(user);}

    @Override
    public int Register(User user) {
        return userMapper.Register(user);
    }

    @Override
    public List<User> selectuserList() {return userMapper.selectuserList();}

    @Override
    public User userSelect(int id) {
        return userMapper.userSelect(id);
    }

    @Override
    public void userInsert(User user) {userMapper.userInsert(user);
    }

    @Override
    public void userUpdate(User user) {userMapper.userUpdate(user);
    }

    @Override
    public void userDelete(int id) {userMapper.userDelete(id);
    }


}
